package sensors;

import pacman.Ghost;

public abstract class Sensor {
	protected int lastReading = 0;
	
	/**
	 * A link to the robot that uses this Sensor
	 */
	private Ghost ghost;
	
	/**
	 * Creates a new Sensor given the robot to which it belongs.
	 * 
	 * @param ghost
	 * 			The robot to which this Sensor belongs
	 */
	public Sensor(Ghost ghost){
		setGhost(ghost);
	}

	public Ghost getGhost() {
		return ghost;
	}

	private void setGhost(Ghost ghost) {
		this.ghost = ghost;
	}
}
